package net.easyjava.base.bean.mongodb;

import com.google.code.morphia.annotations.Entity;
import net.easyjava.tools.DBean;

/**
 * Created by wenxiaoning on 15/12/20.
 */
@Entity(value = "article_data",noClassnameStored = true)
public class ArticleDataBean extends DBean {
    private static final long serialVersionUID = -7905449495873502457L;
    private String articleId;//文章id
    private int commentCount;//评论数
    private int clickCount;//点击数
    private int viewCount;//观看数
    private int praiseCount;//点赞数
    private int updateCount;//修改次数
    private int totalViewTime;//总共观看时间、秒为单位
    private long updateTime;
    private long createTime;

    public ArticleDataBean() {
        this.updateTime = System.currentTimeMillis();
        this.createTime = System.currentTimeMillis();
    }

    public int getUpdateCount() {
        return updateCount;
    }

    public void setUpdateCount(int updateCount) {
        this.updateCount = updateCount;
    }

    public String getArticleId() {
        return articleId;
    }

    public void setArticleId(String articleId) {
        this.articleId = articleId;
    }

    public int getCommentCount() {
        return commentCount;
    }

    public int getTotalViewTime() {
        return totalViewTime;
    }

    public void setTotalViewTime(int totalViewTime) {
        this.totalViewTime = totalViewTime;
    }

    public void setCommentCount(int commentCount) {
        this.commentCount = commentCount;
    }

    public int getClickCount() {
        return clickCount;
    }

    public void setClickCount(int clickCount) {
        this.clickCount = clickCount;
    }

    public int getViewCount() {
        return viewCount;
    }

    public void setViewCount(int viewCount) {
        this.viewCount = viewCount;
    }

    public int getPraiseCount() {
        return praiseCount;
    }

    public void setPraiseCount(int praiseCount) {
        this.praiseCount = praiseCount;
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public long getCreateTime() {
        return createTime;
    }

    public void setCreateTime(long createTime) {
        this.createTime = createTime;
    }
}
